Javascript Problem: Removing Duplicate Objects From An Array